package com.azier.kapacitor.script.method;

import com.azier.kapacitor.script.arg.SingleQuotesArg;

import java.util.ArrayList;

/**
* 1 * @Author: luoj
* 2 * @Date: 2019/11/8 11:27
* 3
*/
public class Kind extends AbstractMethod {
    private static final String name = "kind";
    /**
    If called the existing fields will be preserved in addition to the new fields being set. If not called then only new fields are preserved. (Tags are always preserved regardless how is used.)
    **/
    /**
    如果调用，则除了设置新字段外，还将保留现有字段。如果未调用，则仅保留新字段。 （无论如何使用，始终会保留标签。）
    **/
    public Kind(String value) {
        super(new ArrayList<>(), name);
        this.args.add(new SingleQuotesArg(value));
    }
}
